package com.artifact.mit.mypoint.fragment.app;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import com.artifact.mit.mypoint.R;
import com.artifact.mit.mypoint.service.async.PointHistoryAsync;

public class TransactionHistoryFragment extends Fragment {

	protected ListView pointHistory = null;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		return inflater.inflate(R.layout.transaction_history, null);
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		pointHistory = (ListView) getView().findViewById(R.id.listView1);
		
		PointHistoryAsync pointHistoryLoader = new PointHistoryAsync(getActivity(), pointHistory);
		pointHistoryLoader.execute("");
	}
}
